from django.urls import path, include

from .views import ProjectView, ProjectDetailView, ProjectDetailGenericViewSet, ProjectShoucang, MyLoveGenericViewSet

from rest_framework.routers import SimpleRouter

router = SimpleRouter()
# 产品首页
router.register('project', ProjectView, 'project')

router.register('project_detail', ProjectDetailView, 'project_detail')  # 产品详情页
router.register('project_shoucang', ProjectShoucang, 'project_shoucang')  # 产品详情页

router.register('project_detail_content', ProjectDetailGenericViewSet, 'project_detail_content')
router.register('my_love', MyLoveGenericViewSet, 'my_love')

urlpatterns = [

]
urlpatterns += router.urls
